/*
 * 2014-11-29 <br/>
 * 
 */
package cn.bs.base.service.impl;

import cn.bs.base.dao.impl.BaseDao;
import cn.bs.base.eo.ABaseEO;
import cn.bs.base.service.IBaseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;
@Service("baseService")
public class BaseServiceImpl<T extends ABaseEO> implements IBaseService<T> {
    @Resource
    private BaseDao baseDao;
    @Override
    public Serializable save(T t) {
        return baseDao.save(t);
    }

    @Override
    public T getEO(Class<?> t, Serializable id) {
        return (T)baseDao.getEO(t,id);
    }

    @Override
    public void deleteEO(Class<?> t, Serializable id) {
         baseDao.deleteEO(t,id);
    }
}
